﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Windows.Media.Media3D;

namespace GameBoard
{
    [DataContract]
    public class ObjectVisualFactory : BaseVisualFactory
    {
        public ObjectVisualFactory(ObjectVisualData data)
            : base(data)
        {
        }
        public override ModelVisual3D MakeVisual()
        {
            ObjectVisual vis = new ObjectVisual();
            vis.PopulateVisualData(VisualData);
            return vis.VisualElement;
        }
    }
}
